package com.test.listview.util;

import android.content.Context;
import android.content.Intent;

import com.test.listview.BaseAdapterActivity;
import com.test.listview.BaseAdapterMoreActivity;
import com.test.listview.ContactListActivity;
import com.test.listview.CursorAdapterActivity;
import com.test.listview.GridViewActivity;
import com.test.listview.GridViewMoreActivity;
import com.test.listview.TaskDemoActivity;

/**
 * 此处应有描述
 *
 * @author wujy
 * @date 2016年01月26日 10:33
 */
public class ActivityUtil {
    /**
     * 启动界面
     * @param ctx
     */
    public static void startBaseAdapter(Context ctx){
        Intent intent = new Intent(ctx, BaseAdapterActivity.class);
        ctx.startActivity(intent);
    }

    /**
     * 启动界面
     * @param ctx
     */
    public static void startBaseAdapterMore(Context ctx){
        Intent intent = new Intent(ctx, BaseAdapterMoreActivity.class);
        ctx.startActivity(intent);
    }

    /**
     * 启动界面
     * @param ctx
     */
    public static void startCursor(Context ctx){
        Intent intent = new Intent(ctx, CursorAdapterActivity.class);
        ctx.startActivity(intent);
    }



    /**
     * 启动界面
     * @param ctx
     */
    public static void startContactList(Context ctx){
        Intent intent = new Intent(ctx, ContactListActivity.class);
        ctx.startActivity(intent);
    }

    /**
     * 启动界面
     * @param ctx
     */
    public static void startGridView(Context ctx){
        Intent intent = new Intent(ctx, GridViewActivity.class);
        ctx.startActivity(intent);
    }

    /**
     * 启动界面
     * @param ctx
     */
    public static void startGridViewMore(Context ctx){
        Intent intent = new Intent(ctx, GridViewMoreActivity.class);
        ctx.startActivity(intent);
    }

    /**
     * 启动作业示例
     * @param ctx
     */
    public static void startTaskDemo(Context ctx){
        Intent intent = new Intent(ctx, TaskDemoActivity.class);
        ctx.startActivity(intent);
    }
}
